﻿/* DotNetHoldem 
 * .Net Solution that allows to use OpenHoldem with .Net logic
 * Author: Óscar Andreu
 * oesido at gmail dot com
 * Licensed under GPLv3 - 2012
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DotNetBotLogic.Classes.PlayHistory
{
    internal class Player
    {
        private double oldBalance = 0;

        internal double Winloss { get; set; }
        internal string Name { get; set; }
        internal int HandsPlayed { get; set; }
        internal int CurrentChair { get; set; }
        internal int DealPosition { get; set; }

        private double balance;
        internal double Balance 
        {
            get
            {
                return balance;
            }
            set
            {
                if (oldBalance != 0)
                    Winloss += balance - oldBalance;
                else
                    oldBalance = balance;

                balance = value;
            }
        }

        
        /// <summary>
        /// Voluntarily put money in the pot
        /// </summary>
        internal double VP_IP{ get; set; }

        /// <summary>
        /// Preflop Raise
        /// </summary>
        internal double PFR { get; set; }




        internal Player(string name)
        {
            this.Name = name;
        }

    }
}

